<?php
class Roles extends Controller {
	
	public function __construct()
  {
    parent::Controller();
  }

  public function index() {
  }
  
  public function getRoles() {
  	$q = Doctrine_Query::create()
			->select('*')
			->from('Role');
			
		$result = $q->fetchArray();
		
		echo '{"rows":'.json_encode($result).'}';
  }
  
}